/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DTO;

/**
 *
 * @author Endlesslove
 */
public class ChiTietPhieuNhap  implements  Idata
{
    private String MaChiTietPhieu;
    public String MaPhieuNhap;
    public String MaSach;
    public int SoLuongNhap;
    public int DonGiaNhap;
    
    public ChiTietPhieuNhap(String ...param)
    {
        MaChiTietPhieu = param[0];
        MaPhieuNhap = param[1];
        MaSach = param[2];
        SoLuongNhap = Integer.parseInt(param[3]);
        DonGiaNhap = Integer.parseInt(param[4]);
    }
    @Override
    public boolean Delete() 
    {
        return new BUS.ChiTietPhieuNhap().Delete(this);
    }

    @Override
    public boolean Insert() 
    {
        return new BUS.ChiTietPhieuNhap().Insert(this);
    }

    @Override
    public boolean Update() 
    {
        return new BUS.ChiTietPhieuNhap().Update(this);
    }

    @Override
    public Object[] getObjects() 
    {
        return new Object[]
        {
          MaChiTietPhieu, MaPhieuNhap, MaSach, SoLuongNhap, DonGiaNhap
        };
    }
    @Override
    public String getID() 
    {
        return MaChiTietPhieu;
    }
    
    public String getMaPhieuNhap()
    {
        return MaPhieuNhap;
    }
    
}
